package com.club.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhangfc
 * @date 2022/12/12 16:26
 */
@Data
@TableName(value = "user_club_relation")
@Builder(toBuilder = true)
public class UserClubRelation implements Serializable {

    private static final Long serialVersionUUID = 1L;

    /**
     * 用户参加社团关联主键
     */
    @TableId(value = "user_club_id",type = IdType.AUTO)
    private int userClubId;

    /**
     * 用户主键
     */
    @TableField(value = "user_id")
    private int userId;

    /**
     * 社团主键
     */
    @TableField(value = "club_id")
    private int clubId;

    /**
     * 是否管理员 1-是 0-否
     */
    @TableField(value = "ismanager")
    private String isManager;
}
